home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2000 January / Macworld (2000-01).dmg / Serious Software / PageSentry 2.5.2 Pro CD demo / Sample AppleScripts / READ ME! < prev    next >
Text File  |  1998-02-23  |  3KB  |  33 lines

  1.                    PageSentry Sample Scripts
  2.  
  3. Overview...
  4.  
  5.      To use any script, you'll need to compile it.  Use Apple's "Script Editor" or similar script writing utility to open the script you'd like to use.  In the script editor, make any changes neccesary and choose "Save As..." from the "File" menu.
  6.  
  7.      Set the "Kind" in the save dialog box to "Application", and make sure that the "Stay Open" and "Never Show Startup Screen" options are checked.  Depending on the script, you may be able to uncheck "Stay Open" so that the script will execute and then quit when its done, but some scripts work better when they stay open.
  8.  
  9.      Once you have selected the appropriate save options, give the application a name and save it.  You'll then be able to use the application to process problem notifications coming from PageSentry.
  10.  
  11.      Note that some of these scripts (SendPage_PageNow and RecyclePower) are no longer required, since PageSentry now provides PageNow and PowerKey support directly.  However, these examples are still good samples of simple scripts, and can be used to help you build similar scripts yourself.  They are also provided in case there are advanced features of the PageNow or PowerKey software that you need to take advantage of but that are not supported in PageSentry automatically.
  12.  
  13.  
  14. The Scripts Included in this Package...
  15.  
  16. DisplayDialog - 
  17.      This simply receives the incoming notification and displays it in a dialog box on the PageSentry machine.  This version has been modified to shorten the message if necessary in order for it to fit in the dialog.
  18.  
  19. DisplayDialog (Simple) - 
  20.      This simply receives the incoming notification and displays it in a dialog box on the PageSentry machine. For simplicty, this version of DisplayDialog just displays the incoming message.  If the message is too long, it may not be displayed at all.
  21.  
  22. SaveFile -
  23.      This script saves the message to a file called "Sentry Results" on the root of your default hard drive.  It also launches SimpleText (or defined text viewing application) and displays the file.
  24.  
  25. SendPage_PageNow -
  26.      This script uses the application "PageNow" to send the notification as an alphanumeric message to a pager.  See the script for details on specifying where PageNow needs to reside, and on how to use the script.  Also, see the User's Guide section "Extending PageSentry Using AppleEvents" for a complete description of how the script works.
  27.  
  28. SendPage_Notify -
  29.      Another script for sending alphanumeric pages, this script uses "Notify" to send the notification.  See the script for details, as well as the "Extending PageSentry Using AppleEvents" section of the User's Guide.
  30.  
  31. RecyclePower -
  32.      If you have a PowerKey Pro from Sophisticated Circuits, you can have PageSentry recycle your server's power, essentially re-booting your server no matter how hung-up it becomes.  We recommend using this script with PageSentry's "Delay After Initial Failure" option set to at least a number of minutes equal to or greater than the test frequency for the testing Sentry.  This will help to avoid unnecessary power resets due to busy servers or flaky network connections.  Also, see the PowerKey Pro software for more extensive scripts that can be used with PageSentry.
  33.